<%@page import="com.swk.login.UserBean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
</head>
<body>
	<h3>
		欢迎！
		<%
			UserBean userBean = (UserBean) session.getAttribute("userBean");
			if (userBean != null ) {
				out.write(userBean.getUsername());
			}else{
				out.write("游客");
			}
		%>
		&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="/webDetail/sessionLogin.html">登录</a>
		<a href="/webDetail/SessionLogin">注销</a>
		&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="/webDetail/autoLogin.html">自动登录</a>
		<a href="/webDetail/AutoLogin">注销</a>
	</h3>
	<hr>
	
	<h3>
		<a href="/webDetail/Path">转发与重定向</a>
		<a href="/webDetail/PathTest">路径测试</a>
	</h3>
	<hr>
	
	<h3>
		加载资源文件：&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="/webDetail/LoadBySC">ServletContext方式</a>
		<a href="/webDetail/LoadByCL">类加载器方式</a>
	</h3>
	<hr>
	
	<h3>
		表单提交：&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="/webDetail/form">防止重复提交</a>
	</h3>
</body>
</html>